'use strict';

const moment = require('moment');
const Sequelize = require('sequelize');
const { Model } = Sequelize;

const mysql = require('../common/mysql');

class PublishTask extends Model { }

PublishTask.init({
    env: {
        type: Sequelize.STRING,
        primaryKey: true,
    },
    upgradeVersion: {
        type: Sequelize.STRING,
    },
    publishVersion: {
        type: Sequelize.STRING,
    },
    crtUpgradeVersion: {
        type: Sequelize.STRING,
    }
}, {
    sequelize: mysql,
    modelName: 'publish_tasks',
    timestamps: false,
});

module.exports = PublishTask;